//
//  AWMessageConstants.m
//  AtWork2
//
//  Created by lucas on 15/7/4.
//  Copyright (c) 2015年 Foreveross. All rights reserved.
//

#import "AWMessageConstants.h"

#pragma mark - Message

NSString *const AWMessageKDeliveryId = @"delivery_id";
NSString *const AWMessageKFrom = @"from";
NSString *const AWMessageKTo = @"to";
NSString *const AWMessageKDeliveryTime = @"delivery_time";
NSString *const AWMessageKType = @"type";
NSString *const AWMessageKBody = @"body";
NSString *const AWMessageKDeviceId = @"device_id";

NSString *const AWMessageKCmd = @"CMD";
NSString *const AWMessageKReq = @"REQ";
NSString *const AWMessageKResp = @"RESP";
NSString *const AWMessageKAck = @"ACK";
NSString *const AWMessageKChat = @"CHAT";
NSString *const AWMessageKNotice = @"NOTICE";
NSString *const AWMessageKVoip = @"VOIP";
NSString *const AWMessageKServeNO = @"SERVE_NO";
NSString *const AWMessageKCustom = @"CUSTOM";

#pragma mark - ChatMessage

NSString *const AWMessageKContent = @"content";
NSString *const AWMessageKMediaId = @"media_id";
NSString *const AWMessageKDestType = @"dest_type";
NSString *const AWMessageKDisplayName = @"display_name";
NSString *const AWMessageKDisplayAvatar = @"display_avatar";
NSString *const AWMessageKText = @"TEXT";
NSString *const AWMessageKImage = @"IMAGE";
NSString *const AWMessageKVoice = @"VOICE";
NSString *const AWMessageKFile = @"FILE";
NSString *const AWMessageKSystem = @"SYSTEM";
NSString *const AWMessageKArticle = @"ARTICLE";
NSString *const AWMessageKEvent = @"EVENT";
NSString *const AWMessageKTargetUrl = @"@target_url";
NSString *const AWMessageKMoreInfo = @"more_info";

#pragma mark - TextMessage

NSString *const AWMessageTextType = @"text_type";
NSString *const AWMessageAtContacts = @"at_contacts";

#pragma mark - VoiceMessage

NSString *const AWMessageKDuration = @"duration";

#pragma mark - FileMessage

NSString *const AWMessageKSize = @"size";
NSString *const AWMessageKName = @"name";
NSString *const AWMessageKExpireTime = @"expire_time";
NSString *const AWMessageKThumbnail = @"thumbnail";
NSString *const AWMessageKFileSatus = @"file_status";
NSString *const AWMessageKPath = @"path";
NSString *const AWMessageKProgress = @"progress";

NSString *const AWMessageKFileStatusSenderSent = @"已发送";
NSString *const AWMessageKFileStatusSenderSending = @"发送中";
NSString *const AWMessageKFileStatusSenderFault = @"发送失败";
NSString *const AWMessageKFileStatusReceiverDownloaded = @"已下载";
NSString *const AWMessageKFileStatusReceiverUnDownloaded = @"未下载";
NSString *const AWMessageKFileStatusReceiverDownloading = @"下载中";
NSString *const AWMessageKFileStatusReceiverInvalid = @"已取消";

#pragma mark - AckMessage

NSString *const AWMessageKAckRecv = @"RECV";
NSString *const AWMessageKAckRead = @"READ";
NSString *const AWMessageKAckWrite = @"WRITE";
NSString *const AWMessageKAckIds = @"ack_ids";
NSString *const AWMessageKAckTime = @"ack_time";
NSString *const AWMessageKSessionIdentifier = @"session_identifier";

#pragma mark - CmdMessage

NSString *const AWMessageKOperation = @"operation";
NSString *const AWMessageKOperationKick = @"KICK";
NSString *const AWMessageKOperationResetCredentials = @"RESET_CREDENTIALS";
NSString *const AWMessageKOperationRemoved = @"USER_REMOVED";
NSString *const AWMessageKOperationChanged = @"USER_PROFILE_CHANGED";

#pragma mark - NoticeMessage

NSString *const AWMessageKOperator = @"operator";
NSString *const AWMessageKDiscussion = @"DISCUSSION";
NSString *const AWMessageKP2P = @"P2P";
NSString *const AWMessageKMembers = @"members";
NSString *const AWMessageKOwner = @"owner";
NSString *const AWMessageKLastOwner = @"newOwner";
NSString *const AWMessageKOperationRefreshContact = @"REFRESH_CONTACT";
NSString *const AWMessageKOperationCreated = @"CREATED";
NSString *const AWMessageKOperationDismissed = @"DISMISSED";
NSString *const AWMessageKOperationProfileChanged = @"PROFILE_CHANGED";
NSString *const AWMessageKOperationSettingChanged = @"SETTINGS_CHANGED";
NSString *const AWMessageKOperationMemberJoined = @"MEMBER_JOINED";
NSString *const AWMessageKOperationMemberKicked = @"MEMBER_KICKED";
NSString *const AWMessageKOperationMemberLeaved = @"MEMBER_LEAVED";
NSString *const AWMessageKOperationAdminAdded = @"ADMIN_ADDED";
NSString *const AWMessageKOperationAdminRemoved = @"ADMIN_REMOVED";
NSString *const AWMessageKOperationNameChanged = @"NAME_CHANGED";

#pragma mark - EventMessage

NSString *const AWMessageKEventType = @"event_type";

#pragma mark - ArticleMessage

NSString *const AWMessageKArticles = @"articles";
NSString *const AWMessageKId = @"id";
NSString *const AWURL=@"url";
NSString *const AWMessageKTitle = @"title";
NSString *const AWMessageKAuthor = @"author";
NSString *const AWMessageKSummary = @"summary";
NSString *const AWMessageKContentSource = @"content_source";
NSString *const AWMessageKShowCover = @"show_cover";
NSString *const AWMessageKCoverMediaId = @"cover_media_id";
NSString *const AWCONVERURL=@"cover_url";
NSString *const AWMessageKCreateTime = @"create_time";
NSString *const AWMessageKSort = @"sort";

#pragma mark - ImageMessage 

NSString *const AWMessageKThumbWidth = @"thumb_width";
NSString *const AWMessageKThumbHeight = @"thumb_height";

#pragma mark - ping-pong

NSString *const AWMessageKTimestamp = @"timestamp";
NSString *const AWMessageKTimezone = @"timezone";


@implementation AWMessageConstants
@end
